package com.rzico.basics.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Transient;
import java.math.BigDecimal;
import java.util.Date;

/**
 *   订单附加信息
 * Created by macro on 2018/5/17.
 */
@Data
@JsonIgnoreProperties(value = {"handler"})
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CouponVo {

    @ApiModelProperty("活动id")
    private String id;
    @ApiModelProperty("活动标题")
    private String name;
    @ApiModelProperty("缩例图")
    private String thumbnail;
    @ApiModelProperty("满减或折扣/金额")
    private BigDecimal amount;
    @ApiModelProperty("有效期")
    private Date endDate;
    @ApiModelProperty("适用范围")
    private Integer scope;
    @ApiModelProperty("类型券类型 {0通用券,1:品牌券,2:会员券,3:分类券,4.商品券,5.兑换券}")
    private Integer targetType;
    @ApiModelProperty("优惠方式 {0:满减券,1:折扣券,3.兑换券}")
    private Integer type;

    @Transient
    @ApiModelProperty(value = "用户是否领取过这个券" )
    protected boolean received;

}
